//
//  UserEngine.swift
//  onemeetingmac
//
//  Created by 张衡 on 2020/6/10.
//  Copyright © 2020 onemeeting. All rights reserved.
//

import Foundation

class MinimizeViewController: NSViewController {
    
    override func loadView() {
        let view = NSView.init(frame: NSRect.init(x: 0, y: 0, width: 240, height: 200))
        view.wantsLayer = true
        view.layer?.backgroundColor = NSColor.black.cgColor
        self.view = view
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.setupUI()
    }
    
    func setupUI() {
        self.view.layer?.backgroundColor = color_gray(40).cgColor
        
        self.view.addSubview(tabar)
        tabar.snp.makeConstraints { (make) in
            make.width.equalTo(tabar.getWidth())
            make.bottom.centerX.equalToSuperview()
            make.height.equalTo(40)
        }
    }
    
    lazy var tabar: MinimizeTabar = {
        let view = MinimizeTabar.init()
        view.wantsLayer = true
        view.layer?.backgroundColor = color_gray(0).withAlphaComponent(0.8).cgColor
        return view
    }()
    
    
    lazy var videoView: TCVideoView = {
        var info = UserInfo()
        info.userId = "132412312412312"
        let view = TCVideoView.init(data: info, delegate: nil)
        return view
    }()
    
    
}
